package bd;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author LIBOFEI
 * @ClassName test
 * @description
 * @date 2021/11/25 14:13
 * @Version 1.0
 **/
public class test {


    public static void main(String[] args) {
        BigDecimal process = new BigDecimal(8).divide(new BigDecimal(10));
        System.out.println(process);

        BigDecimal multiply = process.multiply(new BigDecimal(19.99)).setScale(2, RoundingMode.HALF_UP);
        System.out.println(multiply);
    }
}
